home *** CD-ROM | disk | FTP | other *** search
/ 8bitfiles.net/archives / archives.tar / archives / compuserve-file-archive / 03 Demos and Info / GENERL.TXT < prev    next >
Encoding:
Text File  |  2019-04-13  |  15.7 KB  |  415 lines

  1.                   HAYES COMMANDS, S REGISTERS, RS232C PIN-OUTS
  2.         
  3.         
  4.         
  5.          1. AT Commands for the Hayes 1200B and Other Compatible Modems
  6.         
  7.                        Not all commands may work on older Hayes
  8.                         models or on "Hayes-compatible" modems  
  9.         
  10.         
  11.         AT    Attention prefix.  Precedes all command strings except +++ and
  12.               A/
  13.         A/    Repeat previous command line
  14.         +++   Hayes escape code; switches from on-line state to command state.
  15.               Allow 1 second pause before/after escape code entry.  Do not 
  16.               follow with <CR>.
  17.         
  18.         
  19.                                    DIALING COMMANDS
  20.         
  21.         D     Dial
  22.         P     Pulse
  23.         T     Tone
  24.         ,     Pause
  25.         !     Flash
  26.         /     Wait for 1/8 sec.
  27.         @     Wait for silence
  28.         ;     Return to command state after dialing
  29.         
  30.         
  31.         
  32.                                     OTHER COMMANDS
  33.         
  34.          (If a command accepts a numeric prefix, then the command with the
  35.          sub-parameter 0 (zero) is the same as the command with NO numeric
  36.          subparameter.
  37.           For example, ATH0 is the same as ATH, ATM0 is the same as ATM, etc.)
  38.         
  39.         A     Answer call without waiting for ring
  40.         B     CCITT V.22 mode
  41.         B1    Bell 103 & 212A mode
  42.         C     Transmit carrier off
  43.         C1    Carrier on
  44.         E     Characters NOT echoed
  45.         E1    Characters echoed
  46.         F     Half-duplex
  47.         F1    Full-duplex
  48.         H     On hook (hang up)
  49.         H1    Off hook (line and auxiliary relay)
  50.         H2    Off hook (line relay only)
  51.         I     Request product ID code (may be Hayes-specific)
  52.         I1    Test ROM checksum
  53.         I2    Test internal memory
  54.         L0    Low speaker volume
  55.         L1    Low speaker volume
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.         L2    Medium speaker volume
  63.         L3    High speaker volume
  64.         M     Speaker always off
  65.         M1    Speaker on until carrier detect
  66.         M2    Speaker always on
  67.         O     Go to on-line state
  68.         O1    Remote digital loopback off
  69.         O2    Remote digital loopback request
  70.         Q     Result codes displayed
  71.         Q1    Result codes NOT displayed
  72.         Sr?   Requests current value of modem register 'r'
  73.         Sr=n  Sets modem register 'r' to value 'n'
  74.         V     Show digit result codes
  75.         V1    Show word result codes
  76.         X     Sets baudrate to 300
  77.         X1    Result code CONNECT 1200 enabled
  78.         X2    Enables dial tone detection
  79.         X3    Enables busy signal detection
  80.         X4    Enables dial tone & busy signal detection
  81.         Y     Long space disconnect disabled
  82.         Y1    Long space disconnect disabled
  83.         Z     Software reset; restore default settings
  84.         
  85.         
  86.                                    2. RESULT  CODES
  87.         
  88.         Digit    Word         Description
  89.         -----    ----         --------------------------------------------------
  90.           0      OK ..........Command executed
  91.           1      CONNECT .....Connected at 300 or 1200 bps.  Connected at 300
  92.                               if result of X1, X2, X3 or X4
  93.           2      RING ........Ringing signal detected
  94.           3      NO CARRIER ..Carrier not detected or lost
  95.           4      ERROR .......Illegal cmd, error in cmd line, cmd line exceeds
  96.                               40 chars, invalid char format at 1200 bps, invalid
  97.                               checksum
  98.           5      CONNECT 1200 Connected at 1200 bps.  Results from X1, X2, X3
  99.                               or X4 commands only
  100.           6      NO DIALTONE .Dial tone not detected; subsequent cmds not
  101.                               processed.  Results from X2 or X4 cmds only.
  102.           7      BUSY ........Busy signal detected and subsequent cmds not pro-
  103.                               cessed.  Results from X3 or X4 cmds only.
  104.           8      NO ANSWER ...Silence not detected and subsequent cmds not pro-
  105.                               cessed.  Results from @ cmd only.
  106.         
  107.         
  108.         
  109.                                    3. S  REGISTERS
  110.             Note: almost all have reasonable default values set by ATZ command
  111.         
  112.         Here is a list of the S-registers used by Hayes modem. Please be aware
  113.         that not all modems support these registers and that some modems may
  114.         have more registers than are listed.
  115.         
  116.         ALL S REGISTER COMMANDS ARE ENTERED IN THE AT COMMAND LINE.
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.         EXAMPLE: AT S8=2 S2=43 S7=30
  124.         TO READ THE VALUE IN ANY REGISTER USE
  125.                  AT SX? <CR>
  126.         THE MODEM SHOULD ECHO THE VALUE FOUND IN THE REGISTER X
  127.         
  128.         
  129.         REG  Values      Register function
  130.         S0   0           AUTO ANSWER OFF
  131.              1-255       AUTO ANSWER ON, ANSWER ON INDICATED # OF RINGS
  132.         S1 **0-255       RING COUNT (THIS IS A READ-ONLY REGISTER)
  133.         S2   0-127       ESCAPE CHARACTER  NORMALLY SET TO 43 OR "+"
  134.              127-255     ESCAPE FUNCTION DISABLED
  135.         S3  0-127        END OF LINE CHARACTER  NORMALLY SET TO 13 (CR)
  136.         S4  0-127        LINE FEED CHARACTER  NORMALLY SET TO 10 (LF)
  137.         S5  0-127        BACKSPACE CHARACTER  NORMALLY SET TO 8 (BS)
  138.         S6  2-255  SEC   PAUSE BEFORE DIALING (NORMALLY 2 SEC)
  139.         S7  1-255  SEC   WAIT FOR CARRIER (NORMALLY SET TO 30 SEC)
  140.         S8  0-255  SEC   PAUSE FOR COMMA IN DIAL STRING (NORMALLY SET TO 2 SEC)
  141.         S9  1-255  .1SEC CARRIER VALIDATION TIME NORMALLY 6 (.6 SEC)
  142.         S10 1-255  .1SEC LOSS OF CARRIER DISCONNECT DELAY NORMALLY 14 (1.4 SEC)
  143.         S11 50-90  .1SEC BETWEEN NUMBER DIAL DELAY.  UNDOCUMENTED.  IMPROVE DIAL
  144.                          SPEED. I LIKE 55. THE DEFAULT IS 90.
  145.         S12 20-255 .02SE ESCAPE SEQUENCE PAUSE  NORMALLY 50 (1.0 SEC)
  146.         S13 *            POWER UP ASYNC DATA FORMAT (USE CHART BELOW)
  147.         S14 *            OPTION STATUS (USE CHART BELOW)
  148.         S16 *            TEST STATUS (USE CHART BELOW)
  149.         S18 0-255 SEC    TEST TIMER (REMOTE TEST)
  150.         S21 *            OPTION STATUS  (USE CHART BELOW)
  151.         S22 *            OPTION STATUS  (USE CHART BELOW)
  152.         S23 *            OPTION STATUS  NORMALLY 07 (USE CHART BELOW)
  153.         S25 0-255 SEC    DTR DETECT DELAY NORMALLY 5 SEC
  154.                          ASYNC MODE, SYIC AUTO-DIAL AND SYIC MANUAL DIAL MODE .05 SEC
  155.         S26 0-255 MS     RTS TO CTS DELAY (1 MS)
  156.         S27 *            OPTION STATUS (USE CHART BELOW)
  157.         
  158.         * REGISTERS USED BY MODEM PROCESSOR. DO NOT ALTER THESE
  159.         ** READ ONLY REGISTERS
  160.         
  161.                       S 13 DATA FORMAT:
  162.         
  163.         POSITION  VALUE  FUNCTION
  164.          BIT 0      -    NOT USED
  165.          BIT 1      -    NOT USED
  166.          BIT 2      0    PARITY OFF
  167.                     1    PARITY ON
  168.          BIT 3      0    ODD PARITY
  169.                     1    EVEN PARITY
  170.          BIT 4      0    7 DATA BITS
  171.                     1    8 DATA BITS
  172.          BIT 5      0    BIT 8=0
  173.                     1    BIT 8=1
  174.          BIT 6      -    NOT USED
  175.          BIT 7      -    NOT USED
  176.         
  177.                      S 14 DATA FORMAT:
  178.  
  179.  
  180.  
  181.  
  182.  
  183.  
  184.          BIT 0      -    NOT USED
  185.          BIT 1      0    LOCAL CHARACTER ECHO OFF
  186.                     1    LOCAL CHARACTER ECHO ON
  187.          BIT 2      0    STATUS DISPLAYS ON
  188.                     1    STATUS DISPLAYS OFF
  189.          BIT 3      0    STATUS CODES SENT
  190.                     1    STATUS MESSAGES SENT
  191.          BIT 4      0    MODEM RESPONDS TO COMMANDS
  192.                     1    MODEM IGNORES COMMANDS
  193.          BIT 5      0    TONE-DIALING
  194.                     1    PULSE-DIALING
  195.          BIT 6      -    NOT USED
  196.          BIT 7      0    ANSWER MODE
  197.                     1    ORIGINATE MODE
  198.         
  199.                       S 16 DATA FORMAT:
  200.          BIT 0      0    ANALOG LOOP OFF
  201.                     1    ANALOG LOOP ACTIVE
  202.          BIT 1      -    NOT USED
  203.          BIT 2      0    DIGITAL LOOP OFF
  204.                     1    DIGITAL LOOP ACTIVE
  205.          BIT 3      0    REMOTE DIGITAL LOOP REQUESTED BY OTHER MODEM IS OFF
  206.                     1    REMOTE DIGITAL LOOP REQUESTED BY OTHER MODEM IS ACTIVE
  207.          BIT 4      0    REMOTE DIGITAL LOOP OFF
  208.                     1    REMOTE DIGITAL LOOP ACTIVE
  209.          BIT 5      0    SELF TEST RDL OFF
  210.                     1    SELF TEST RDL ACTIVE
  211.          BIT 6      0    SELF TEST ANALOG LOOP OFF
  212.                     1    SELF TEST ANALOG LOOP ACTIVE
  213.          BIT 7      -    NOT USED
  214.         
  215.                       S 21 DATA FORMAT:
  216.          BIT 0      0    RJ11/RJ41/45 JACK TYPE
  217.                     1    RJ12/FJ13 JACK TYPE
  218.          BIT 1      -    NOT USED
  219.          BIT 2      0    CTS FOLLOWS RTS
  220.                     1    CTS FORCED ON
  221.          BIT 3&4    0    MODEM IGNORES DTR
  222.                     1    MODEM ASSUMES COMMAND STATE WHEN DTR TURNS OFF
  223.                     2    MODEM ASSUMES COMMAND STATE AND DISABLES AUTO-ANSWER
  224.                          WHEN DTR TURNS OFF
  225.                     3    MODEM RESETS WHEN DTR TURNS OFF
  226.          BIT 5      0    DCD FORCED ON
  227.                     1    DCD FOLLOWS CARRIER
  228.          BIT 6      0    DSR FORCED ON
  229.                     1    DSR BEHAVES NORMALLY
  230.          BIT 7      0    LONG SPACE DISCONNECT DISABLED
  231.                     1    LONG SPACE DISCONNECT ENABLED
  232.         
  233.                       S 22 DATA FORMAT:
  234.          BIT 0&1    1    LOW SPEAKER VOLUME
  235.                     2    MEDIUM SPEAKER VOLUME
  236.                     3    HIGH SPEAKER VOLUME
  237.          BIT 2&3    0    SPEAKER ALWAYS OFF
  238.                     1    SPEAKER ON UNTIL CARRIER DETECTED
  239.  
  240.  
  241.  
  242.  
  243.  
  244.  
  245.                     2    SPEAKER ALWAYS ON
  246.                     3    SPEAKER OFF DURING DIALING THEN ON UNTIL CARRIER DETECTED
  247.          BIT 4&5&6  0    X COMMAND IN EFFECT
  248.                     4    X 1 COMMAND IN EFFECT
  249.                     5    X 2 COMMAND IN EFFECT
  250.                     6    X 3 COMMAND IN EFFECT
  251.                     7    X 4 COMMAND IN EFFECT
  252.          BIT 7      0    39/61 MAKE/BREAK RATIO (PULSE DIALING)
  253.                     1    33/67 MAKE/BREAK RATIO
  254.         
  255.                       S 23 DATA FORMAT:
  256.          BIT 0      0    REMOTE DIGITAL LOOP REQUEST DENIED
  257.                     1    REMOTE DIGITAL LOOP REQUEST GRANTED
  258.          BIT 1&2    0    0-300 BPS
  259.                     1    600 BPS
  260.                     2    1200 BPS
  261.                     3    2400 BPS
  262.          BIT 3      -    NOT USED
  263.          BIT 4&5    0    EVEN PARITY
  264.                     1    PARITY BIT ALWAYS 0
  265.                     2    ODD PARITY
  266.                     3    PARITY BIT ALWAYS 1
  267.          BIT 6&7    0    NO GUARD TONES
  268.                     1    550 HZ GUARD TONE
  269.                     2    1800 HZ GUARD TONE
  270.         
  271.                       S 27 DATA FORMAT:
  272.          BIT 0&1    0    ASYNCHRONOUS MODE
  273.                     1    ASYNC/SYNC MODE
  274.                     2    SYNC AUTO-DIAL
  275.                     3    SYNC MANUAL DIAL
  276.          BIT 2      0    PUBLIC PHONE LINE
  277.                     1    LEASED LINE
  278.          BIT 3      -    NOT USED
  279.          BIT 4&5    0    INTERNAL CLOCK USED
  280.                     1    EXTERNAL CLOCK USED
  281.                     2    SLAVED CLOCK USED
  282.          BIT 6      0    CCITT V.22 PROTOCOL (1200 BPS)
  283.                     1    BELL 212A (1200 BPS)
  284.          BIT 7      -    NOT USED
  285.         
  286.         
  287.                  Specialty Commands
  288.         
  289.         ATB0     CCITT V.22 AT 1200 BPS
  290.         ATB1     BELL 212A AT 1200 BPS *
  291.         AT &F    RESTORE TO FACTORY CONFIGURATION
  292.         AT &G    NO GUARD TONE *
  293.         AT &G1   550 HZ GUARD TONE
  294.         AT &G2   1800 HZ GUARD TONE
  295.         AT &J    RJ11/RJ41S/RJ45 JACK *
  296.         AT &J2   RJ12/RJ13 JACK
  297.         AT &L    REGULAR PHONE LINE *
  298.         AT &L1   LEASED LINE
  299.         AT &M    ASYNC OPERATION *
  300.  
  301.  
  302.  
  303.  
  304.  
  305.  
  306.         AT &M1   ASYNC/SYNC OPERATION
  307.         AT &M2   SYNC AUTO DIAL
  308.         AT &M3   SYNC MANUAL DIAL
  309.         AT &P    39/61 PULSE MAKE/BREAK RATIO *
  310.         AT &P1   33/67 PULSE MAKE/BREAK RATIO
  311.         AT &T4   GRANT RDL TEST REQUEST *
  312.         AT &T5   DENY RDL TEST REQUEST
  313.         AT &W    WRITE CURRENT REGISTERS TO NON-VOL-MEMORY (KEEP FOR POWER UP)
  314.         AT &X    SYNC CLOCK INTERNAL *
  315.         AT &X1   SYNC CLOCK EXTERNAL
  316.         AT &X2   SYNC CLOCK SLAVED
  317.         AT &Z    STORE DIAL COMMAND LINE
  318.         
  319.         DATA INTERFACE (2400)
  320.         AT &C    DCD ALWAYS ON *
  321.         AT &C1   DCD ON WHILE CARRIER PRESENT
  322.         AT &D    DTR IGNORED *
  323.         AT &D1   DTR FAIL DISCONNECT ENABLED (MODEM RETURNS TO COMMAND MODE)
  324.         AT &D2   DTR FAIL DISCONNECT ENABLED (MODEM RETURNS TO COMMAND MODE, TURN
  325.                  AUTO ANSWER OFF)
  326.         AT &D3   DTR FAIL DISCONNECT ENABLED (RESET MODEM)
  327.         
  328.         
  329.         
  330.                              4. RS 232 GENERAL PIN NOTES:
  331.                                    (Compatibility)
  332.         
  333.         Most standard RS232 connector problems are with only several pins:
  334.         (these are not the CBM pin numbers, but the DB25 Pins)
  335.           Pins 2-3 swapped (TD/RD)  (Also a null Modem Configuration)
  336.           Pins 4-5-8 swapped, or tied together (RTS/CTS/DCD)
  337.           Pins 6-20 swapped (DSR/DTR)
  338.           Pins 1-7 tied together (Prot. Gnd/Sig Gnd)
  339.           It should also be noted that most TELECOM failures result from cable
  340.           problems, either intermittent, short or open.  Some manufacturers
  341.           do not solder the wires to the pins, but use crimp connectors.
  342.         
  343.         Pin 1; Protective Ground, to equipment frame.  Further grounding
  344.                may be required, depending upon regulation. (NEEDED)
  345.         
  346.         Pin 2; Transmitted Data.  Generated by data terminal equipment going
  347.                TO transmitting signal converter. (NEEDED)
  348.         
  349.         Pin 3; Received Data. Generated by the receiving signal converter 
  350.                going TO the data terminal equipment. (NEEDED)
  351.         
  352.         Pin 4; Request to Send. Line conditioner.  On half-duplex controls
  353.                the direction of data flow. (NEEDED)
  354.         
  355.         Pin 5; Clear to Send. Generated by the data communication equipment
  356.                to flag if the data is or is not ready to be sent out. (NEEDED)
  357.         
  358.         Pin 6; Data Set Ready. Status of the Local Data Set (to terminal).
  359.         
  360.         Pin 8; Data Carrier Detect. Indicates if the receiving signal
  361.  
  362.  
  363.  
  364.  
  365.  
  366.  
  367.                meets certain parameters. (to terminal)
  368.         
  369.         Pin 9; Plus Test Voltage
  370.         
  371.         Pin 10; Negative Test Voltage
  372.         
  373.         Pin 12; Secondary Line (DCD2)
  374.         
  375.         Pin 13; Secondary Line (CTS2)
  376.         
  377.         Pin 14; Secondary Line (TD2)
  378.         
  379.         Pin 15 & 17; T & R Timing
  380.         
  381.         Pin 16; Secondary Line (RD2)
  382.         
  383.         Pin 19; Secondary Line (RTS2)
  384.         
  385.         Pin 20; Data Terminal Ready (DTR) Controls switching the DCE to the
  386.                 communications channel.
  387.         
  388.         Pin 21; Signal Quality Detector. Indicates quality of signal (CCITT
  389.                 equiv. 110) (SQ) 
  390.         
  391.         Pin 22; Ring Indicator (CCITT 125, circuit CE)((RI)
  392.         
  393.         Pin 23; Data Signal Rate Selector (for dual baud rate modems)
  394.         
  395.         Pin 24; Transmitter Signal Element Timing (for DTE) 
  396.         
  397.         Pins 11, 18, and 25 are reserved or not used.  Pin 7 is the needed
  398.         Signal Ground, while pin 25 is sometimes used as a busy signal.
  399.         Synchronous Data Transmissions usually use pins 15, 17 and 24 
  400.         (clocks).
  401.         
  402.         A short note about standards:
  403.         RS means Recommended Standard, by the EIA Specs.  Two others 
  404.         'standards' were designated by CCITT using the prefix V and X.  Other
  405.         RS standards are: 269B (synchronous rates); 334 (Signal Quality); 357
  406.         (FAX); 449 (37 Pin connectors) etc. 
  407.          
  408.         This information was compiled from several sources, and should not be
  409.         considered 'Official'. Always consult your modem/interface/computer
  410.         manual for proper usage.
  411.  
  412.  
  413.  
  414. 
  415.